import * as apiService from '@/services/api'

/**
 * 获取人数统计
 * @param params
 * @returns {Promise<*>}
 *
 */
const getStatisticalMembers= params=> {
  return apiService.post(api.STATISTICAL_MEMBERS,params)
};
/**
 * 获取投注充值统计
 * @param params
 * @returns {Promise<*>}
 *
 */
const getStatisticalBetRecharge= params=> {
  return apiService.post(api.STATISTICAL_BET_RECHARGE,params)
};
/**
 * 获取整点充值统计
 * @param params
 * @returns {Promise<*>}
 *
 */
const getStatisticalHoursRecharge= params=> {
  return apiService.post(api.STATISTICAL_HOURS_RECHARGE,params)
};
/**
 * 获取整点提现统计
 * @param params
 * @returns {Promise<*>}
 *
 */
const getStatisticalHoursWithdraw = params=> {
  return apiService.post(api.STATISTICAL_HOURS_WITHDRAW,params)
};

/**
 * 获取整点投注统计
 * @param params
 * @returns {Promise<*>}
 *
 */
const getStatisticalHoursBet= params=> {
  return apiService.post(api.STATISTICAL_HOURS_BETTING,params)
};
/**
 * 获取账户余额统计
 * @param params
 * @returns {Promise<*>}
 *
 */
const getStatisticalBalance= params=> {
  return apiService.post(api.STATISTICAL_BALANCE,params)
};
/**
 * 获取当日账户余额详情
 * @param params
 * @returns {Promise<*>}
 *
 */
const getStatisticalBalanceToday= params=> {
  return apiService.post(api.STATISTICAL_BALANCE_TODAY,params)
};

/**
 * 导出账户余额统计
 * @param params
 * @returns {Promise<*>}
 *
 */
const exportAccountBalance= params=> {
  return apiService.post(api.EXPORT_ACCOUNT_BALANCES,params)
};

/**
 * 导出今日账户余额统计
 * @param params
 * @returns {Promise<*>}
 *
 */
const exportTodayAccountBalance= params=> {
  return apiService.post(api.EXPORT_ACCOUNT_BALANCE_TODAY,params)
};
export {
  getStatisticalMembers,//人数统计
  getStatisticalBetRecharge,//投注充值统计
  getStatisticalHoursRecharge,//整点充值统计
  getStatisticalHoursWithdraw,//整点提现统计
  getStatisticalHoursBet,//整点投注统计
  getStatisticalBalance,//账户余额统计
  getStatisticalBalanceToday,
  exportAccountBalance,//导出账户余额统计
  exportTodayAccountBalance
}
